Widthtabler v1.0
(c) evo 2005-2006
evobboy@yahoo.it

DISCLAIMER:

Permission to use, copy and distribute this software in binary form,
for non-commercial purposes, is hereby granted without fee,
providing that this license information and copyright notice appear with
all copies.
This software is provided 'as-is', without any express or implied
warranty. In no event shall the author be held liable for any damages
arising from the use of this software.
Trademarks are of the respective owners.


This is a little proggy to create width lookup table
to use in your vwf.
This currently works on 1 and 2 bitplanes (gb/snes)
(it can work thoug on 3 4 5 etc bitplanes if they are consecutive
unlike the snes modes in which you have bitplane 1 and 2 mixed up and after
the bites of the third and fourth mixed up.)
It works with all kind of font dimension 8x8, 8x16, 16x16, 16x32... :P
To work it needs to have a font in which the background color is the first,
otherwise it wont work!
It consider automatically 1 pixel of spacing!
It works only on consecutive tiles!
For example an 16x16 font will have the upper part first, and the bottom after that.

how to make it work:
wt font.bin width.bin bitplanes blank modex modey

- font.bin : is your font
- width.bin: is your width table
- bitplanes: the number of bitplanes (1,2...)
- blank	   : when it find a blank tile don't make the width 1 but put this.
- modex    : (width of the tile)/8
   for example if you have a 16x32 font 16/8 = 2 you must put 2 in the command line!
- modey    : (height of the tile)/8
   for example if you have a 8x16 font 16/8 = 2 you must put 2 in the command line!

EXAMPLE:

2 bitplanes 8x16 blank: 3 would be
wt font.bin width.bin 2 3 1 2

(c) evo 2005-2006
evobboy@yahoo.it